import request from '@/utils/request'

// 查询工作岗位列表
export function listIfmPostm(query) {
  return request({
    url: '/ifmPost/ifmPostm/list',
    method: 'get',
    params: query
  })
}

// 查询工作岗位详细
export function getIfmPostm(postId) {
  return request({
    url: '/ifmPost/ifmPostm/' + postId,
    method: 'get'
  })
}

// 新增工作岗位
export function addIfmPostm(data) {
  return request({
    url: '/ifmPost/ifmPostm',
    method: 'post',
    data: data
  })
}

// 修改工作岗位
export function updateIfmPostm(data) {
  return request({
    url: '/ifmPost/ifmPostm',
    method: 'put',
    data: data
  })
}

// 删除工作岗位
export function delIfmPostm(postId) {
  return request({
    url: '/ifmPost/ifmPostm/' + postId,
    method: 'delete'
  })
}
